package com.medicine.product.test;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author lynn
 * @version 1.0
 * @date 2022/2/14
 */
public class Sstring {
    public static void main(String[] args) {
        String str1 = "Hello";
        String str2 = new String("Hello");
        List<String> list = new ArrayList<>();
        list.add("1111");
        list.add("2222");
        String str3 = str2; // 引⽤传递
        System.out.println(str1 == str2); // false
        System.out.println(str1 == str3); // false
        System.out.println(str2 == str3); // true
        System.out.println(str1.equals(str2)); // true
        System.out.println(str1.equals(str3)); // true
        System.out.println(str2.equals(str3)); // true
        System.out.println(14*0.8);
    }
}
